package com.amos.teaching_aids.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.view.ViewStub;
import android.widget.ListView;

import com.amos.teaching_aids.R;
import com.amos.teaching_aids.presenter.UserPresenter;

/**
 * Created by Administrator on 2016/10/10 0010.
 */

public class UserInfoActivity extends BaseActivity {
    private CustomDialog dialog;
    private UserPresenter mUserPresenter;
    private ListView listView;
    private int layoutArray[] = { R.layout.user_item };
    public static View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {

        }
    };

    @Override
    public void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        UserPresenter mUserPresenter = new UserPresenter(null, null, null);
        mUserPresenter.setUserInfo(this, layoutArray, listView);
        this.titleLayout.setTitle("个人信息");
    }

    @Override
    public int getLayout() {
        return R.layout.activity_user_info;
    }

    @Override
    protected void initView() {
        super.initView();
        dialog = new CustomDialog(this);
        listView = (ListView) findViewById(R.id.list_view);
        listView.addFooterView(new ViewStub(this));
    }
}
